import dict from './cmn/dict';

import hospital from './hosp/hospital';
import orderInfo from './order/orderInfo';
import weixin from './order/weixin';
import sms from './sms/sms';
import patient from './user/patient';
import userInfo from './user/userInfo';
import userWeixin from './user/weixin';

const { findByDictCode, findByParentId } = dict;
const {
  getPageList,
  getByHosname,
  show,
  findDepartment,
  getBookingScheduleRule,
  findScheduleList,
  getSchedule,
} = hospital;
const {
  submitOrder,
  getOrderInfoPageList,
  getStatusList,
  getOrderInfo,
  cancelOrder,
} = orderInfo;
const { createNative, queryPayStatus } = weixin;
const { sendCode } = sms;
const { findList, getById, save, updateById, removeById } = patient;
const { login, getUserInfo, saveUserAuah } = userInfo;
const { getLoginParam } = userWeixin;

export {
  findByDictCode, //
  findByParentId, //
  getPageList, //
  getByHosname, //
  show, //
  findDepartment, //
  getBookingScheduleRule,
  findScheduleList,
  getSchedule,
  submitOrder,
  getOrderInfoPageList, //
  getStatusList, //
  getOrderInfo,
  cancelOrder,
  createNative,
  queryPayStatus,
  sendCode, //
  findList, //
  getById, //
  save, //
  updateById, //
  removeById, //
  login, //
  getUserInfo, //
  saveUserAuah, // TODO:实名认证的保存
  getLoginParam, //
};
